package cn.ac.siom.query.service.impl;


import cn.ac.siom.query.dao.ITab_orgDAO;
import cn.ac.siom.query.service.ITab_orgService;
import cn.ac.siom.query.vo.Tab_org;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.sql.SQLException;
import java.util.List;

@Service
public class Tab_orgServiceImpl implements ITab_orgService {


    @Resource
    private ITab_orgDAO tab_orgDAO;


    @Override
    public List<Tab_org> list() throws SQLException {
        return this.tab_orgDAO.findAll();
    }

    @Override
    public List<Tab_org> list_NO(Integer i_id) throws SQLException {
        List<Tab_org> tab_org=this.tab_orgDAO.findNo(i_id);
        return tab_org;
    }
}
